from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
     # Admin interface
     url(r'^admin/', include(admin.site.urls)),
    
     (r'^', include('webgui.urls')),
     
     (r'^api/', include('assets.urls')),

     (r'^anvil/', include('anvil.urls')),
     
     (r'^jobs/', include('jobs.urls')),
     
     (r'^ratings/', include('ratings.urls')),
     
     (r'^feeds/', include('feeds.urls')),
     
     (r'^profiles/', include('profiles.urls')),
     
     (r'^tags/', include('tags.urls')),
     
     (r'^configuration/', include('configuration.urls')),
     
     #(r'^accounts/login/$', 'django.contrib.auth.views.login'),
     #(r'^accounts/login/logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}),
     (r'^accounts/profile/$', 'profiles.views.user_profile'),
     
     (r'^accounts/', include('registrations.urls')),
     
     (r'^comments/', include('django.contrib.comments.urls')),
     
     (r'^damnfs/', include('damnfs.urls')),
     
     #(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'templates/'}),
     #(r'^uploaded/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
)
